package com.zj.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("orderdetail")
public class Orderdetail implements Serializable {
    @TableId(value = "detailId")
    private Long detailId;//订单商品id
    @TableField(value = "orderId")
    private Long orderId;//订单id
    @TableField(value = "productId")
    private Long productId;//商品id
    @TableField(value = "count")
    private Integer count;//数量
    @TableField(value = "currentPrice")
    private Double currentPrice;//当前单价

}
